<template>
	<view class="content">
		<button type="primary" @tap="openFile">打开文件选择器</button>
		<view>文件路径为:</view>
		<view class="path">{{path}}</view>
		<tki-file-manager ref="filemanager" @result="resultPath"></tki-file-manager>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				path: '',
			}
		},
		mounted() {
			
		},
		methods: {
			openFile(){
				this.$refs.filemanager._openFile()
			},
			resultPath(e){
				this.path = e
			}
		}
	}
</script>

<style>
	.content {
		width: 100%;
		overflow: hidden;
	}
	.path{
		font-size: 14px;
		word-break:break-all;
	}
</style>
